package com.erp.products.addproduct.domain;

import java.math.BigDecimal;
import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 商品价格对象 erp_products_prices
 *
 * @author ruoyi
 * @date 2025-09-02
 */
@Data
public class ErpProductsPrices extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 价格记录编号，主键且自增
     */
    private Long priceId;

    /**
     * 商品编号，逻辑关联商品表的product_id（无外键约束）
     */
    @Excel(name = "商品编号，逻辑关联商品表的product_id", readConverterExp = "无=外键约束")
    private Long productId;

    /**
     * 规格（如5kg/袋、散装）
     */
    @Excel(name = "规格", readConverterExp = "如=5kg/袋、散装")
    private String specification;

    /**
     * 等级（如一等、特级）
     */
    @Excel(name = "等级", readConverterExp = "如=一等、特级")
    private String grade;

    /**
     * 销售价
     */
    @Excel(name = "销售价")
    private BigDecimal salesPrice;

    @Override
    public String toString() {
        return "ErpProductsPrices{" +
                "priceId=" + priceId +
                ", productId=" + productId +
                ", specification='" + specification + '\'' +
                ", grade='" + grade + '\'' +
                ", salesPrice=" + salesPrice +
                '}';
    }
}